<template>
  <el-menu
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
    :default-active="pageIndex"
    style="position: fixed;height: 100%;width: 15%;top:60px;overflow-y: auto">
    <el-submenu index="1">
      <template slot="title">
        <span>状态监控</span>
      </template>
<!--      -->
      <el-menu-item index="1-1" @click="toMonitorNationWideStatus">
        全国状态信息
      </el-menu-item>
      <el-menu-item index="1-2" @click="toTrainStatus">
        车辆运行信息
      </el-menu-item>
      <el-menu-item index="1-3" @click="toMonitorNequipStatus">
        车辆/零件状态信息
      </el-menu-item>
      <el-menu-item index="1-4" @click="toMonitorDataView">
        时间轴波动监控
      </el-menu-item>
    </el-submenu>
    <el-submenu index="2">
      <template slot="title">
        <span>故障诊断</span>
      </template>
      <el-menu-item index="2-1" @click="toFaultFaultInfo">
        故障信息管理
      </el-menu-item>
      <el-menu-item index="2-2" @click="toFaultDiagnosis">
        综合诊断
      </el-menu-item>
      <el-menu-item index="2-3" @click="toFaultDiagnoseReport">
        报告管理
      </el-menu-item>
    </el-submenu>
    <el-submenu index="3">
      <template slot="title">
        <span>故障预警</span>
      </template>
      <el-menu-item index="3-1" @click="toThresholdWarning">
        阈值预警
      </el-menu-item>
<!--      <el-menu-item index="3-2">-->
<!--        突变预警-->
<!--      </el-menu-item>-->
<!--      <el-menu-item index="3-3">-->
<!--        趋势预警-->
<!--      </el-menu-item>-->
    </el-submenu>
    <el-submenu index="4">
      <template slot="title">
        <span>运维决策</span>
      </template>
      <el-menu-item index="4-1" @click="toRepairOrder">
        故障管理
      </el-menu-item>
      <el-menu-item index="4-2" @click="toMaintainOptimization">
        修程修制优化
      </el-menu-item>
    </el-submenu>
    <el-submenu index="5">
      <template slot="title">
        <span>数据管理</span>
      </template>
      <el-menu-item index="5-1" @click="toDataManagementDataFile">
         数据文件管理
      </el-menu-item>
      <el-menu-item index="5-2" @click="toDataManagementFaultData">
        故障数据管理
      </el-menu-item>
    </el-submenu>
    <el-submenu index="6">
      <template slot="title">
        <span>操作管理</span>
      </template>
      <el-menu-item index="6-1" @click="toManagementEvaluationIndex">
        评估指标管理
      </el-menu-item>
      <el-menu-item index="6-2"  @click="toManagementAction">
        事件记录
      </el-menu-item>
      <el-menu-item index="6-3" @click="toManagementknowledge">
        知识库管理
      </el-menu-item>
      <el-menu-item index="6-4" @click="toTrain">
        车辆管理
      </el-menu-item>
      <el-menu-item index="6-5" @click="toEquipment">
        设备管理
      </el-menu-item>
      <el-menu-item index="6-6" @click="toManagementSensorConfig">
        配置管理
      </el-menu-item>
    </el-submenu>
    <el-submenu index="7">
      <template slot="title">
        <span>算法管理</span>
      </template>
      <el-menu-item index="7-1"  @click="toAlgorithmAlgorithm_config">
        算法管理
      </el-menu-item>
      <el-menu-item index="7-2" @click="toAlgorithmAlgorithmModel">
        模型管理
      </el-menu-item>
      <el-menu-item index="7-3" @click="toTraintest">
        训练/测试列表
      </el-menu-item>
      <el-menu-item index="7-4" @click="toAlgorithmServer">
        服务器管理
      </el-menu-item>
    </el-submenu>
    <el-submenu index="8">
      <template slot="title">
        <span>系统用户</span>
      </template>
      <el-menu-item index="8-1" @click="toUser">
         用户管理
      </el-menu-item>
    </el-submenu>
  </el-menu>
</template>

<script>
    export default {
      name: "sideBars",
      props:{
        pageIndex:{
          default:''
        },
      },
      methods:{
        toMonitorNationWideStatus(){
          this.$router.push({path:'/StatusMonitor/NationWideStatus'})
        },
        toTrainStatus(){
          this.$router.push({path:'/StatusMonitor/TrainStatus'})
        },
        toMonitorNequipStatus(){
          this.$router.push({path:'/StatusMonitor/EquipStatus'})
        },
        toMonitorDataView(){
          this.$router.push({path:'/StatusMonitor/DataView'})
        },
        toFaultFaultInfo(){
          this.$router.push({path:'/FaultDiagnose/FaultInfo'})
        },
        toFaultDiagnoseReport(){
          this.$router.push({path:'/FaultDiagnose/Report'})
        },
        toFaultDiagnosis(){
          this.$router.push({path:'/FaultDiagnose/Diagnosis'})
        },
        /*跳转到阈值预警*/
        toThresholdWarning(){
          this.$router.push({path:'/FaultWarning/ThresholdWarning'})
        },
        /*跳转到工单管理*/
        toRepairOrder(){
          this.$router.push({path:'/Desicion/RepairOrder'})
        },
        /*跳转到修程修制优化*/
        toMaintainOptimization(){
          this.$router.push({path:'/Desicion/MaintainOprimization'})
        },
        toDataManagementDataFile(){
          this.$router.push({path:'/DataManagement/DateFile'})
        },
        toDataManagementFaultData(){
          this.$router.push({path:'/DataManagement/FaultData'})
        },
        toManagementEvaluationIndex(){
          this.$router.push({path:'/Management/EvaluationIndex'})
        },
        toManagementAction(){
          this.$router.push({path:'/Management/action'})
        },
        toManagementknowledge(){
          this.$router.push({path:'/Management/knowledge'})
        },
        toManagementSensorConfig(){
          this.$router.push({path:'/Management/SensorConfig'})
        },
        toAlgorithmAlgorithm_config(){
          this.$router.push({path:'/Algorithm/AlgorithmConfig'})
        },
        toAlgorithmAlgorithmModel(){
          this.$router.push({path:'/Algorithm/Model'})
        },
        /*跳转到车辆管理*/
        toTrain(){
          this.$router.push({path:'/Management/Train'})
        },
        /*跳转到设备管理*/
        toEquipment(){
          this.$router.push({path:'/Management/Equipment'})
        },
        /*跳转到训练/测试列表*/
        toTraintest(){
          this.$router.push({path:'/algorithm/TrainTest'})
        },
        /*跳转到服务器列表*/
        toAlgorithmServer(){
          this.$router.push({path:'/algorithm/AlgorithmServer'})
        },
        /*跳转到用户管理*/
        toUser(){
          this.$router.push({path:'/System/User'})
        }
      },
    }
</script>

<style scoped>

</style>
